import Vue from 'vue';
import Router from 'vue-router';
import CreditStep from '@/components/bussiness/creditStep';
//import Introduce from '@/components/bussiness/introduce/introduce';

import Home from '@/components/home/index';
import productList from '@/components/product/productList';
import productDetail from '@/components/product/productDetail';

import Plat from '@/components/bussiness/plat/plat'
import Loan from '@/components/bussiness/plat/unuse/loan'
import Repay from '@/components/bussiness/plat/unuse/repay'
import LoanList from '@/components/bussiness/plat/unuse/loanList'
import RepayList from '@/components/bussiness/plat/unuse/repayList'

import register from '@/components/login/register';
import slientRegister from '@/components/login/slientRegister';
import login from '@/components/login/login';

Vue.use(Router)

export default new Router({
	routes: [
		{
			path: '/',
			name: 'home',
			component: Home
		},
		{
			path: '/login',
			name: 'login',
			component: login
		},
		{
			path: '/register',
			name: 'register',
			component: register
		},
		{
			path: '/slientRegister',
			name: 'slientRegister',
			component: slientRegister
		},
		{
			path: '/productList',
			name: 'productList',
			component: productList
		},
		{
			path: '/productDetail',
			name: 'productDetail',
			component: productDetail
		},

		{
			path: '/plat',
			name: 'plat',
			component: Plat
		},
		{
			path: '/loan',
			name: 'loan',
			component: Loan
		},
		{
			path: '/repay',
			name: 'repay',
			component: Repay
		},
		{
			path: '/loanList',
			name: 'loanList',
			component: LoanList
		},
		{
			path: '/repayList',
			name: 'repayList',
			component: RepayList
		},
		{
			path: '/creditStep',
			name: 'creditStep',
			component: CreditStep
		}
	]
})
